package com.cisdi.blog.dao;

import com.cisdi.blog.entity.Record;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author pengyangyan
 */
@Repository
public interface RecordRepository extends JpaRepository<Record,Long> {

    @Query("select r from Record r")
    Page<Record> getAll(Pageable pageable);
}
